package com.schoolvisitors.repository;

import com.schoolvisitors.entity.InstrumentSubType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface InstrumentSubTypeRepository extends JpaRepository<InstrumentSubType, Long> {

    Optional<InstrumentSubType> findByIdAndDeleteFalse(Long id);

    List<InstrumentSubType> findAllByDeleteFalse();
}
